from ronglian_sms_sdk import SmsSDK
from celery_tasks.main import celery_app

@celery_app.task()
def ccp_send_sms_code(mobile, sms_code):
    accId = '2c94811c8cd4da0a018fdc0127ac3024'
    accToken = '6d2774171d284c379519af1706a19aea'
    appId = '2c94811c8cd4da0a018fdc012928302c'
    sdk = SmsSDK(accId, accToken, appId)
    datas = (sms_code, '3')
    resp = sdk.sendMessage('1', mobile, datas)
    print(resp)